package com.atguigu.daijia.rules.client;

import com.atguigu.daijia.common.result.Result;
import com.atguigu.daijia.model.form.rules.FeeRuleRequestForm;
import com.atguigu.daijia.model.vo.rules.FeeRuleResponseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-rules")
public interface FeeRuleFeignClient {

    //预估订单费用的远程调用client
    @PostMapping("/rules/fee/calculateOrderFee")
    Result<FeeRuleResponseVo> caculateOrderFee(@RequestBody FeeRuleRequestForm form);



}